// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class AutoCommandResult : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<AutoCommandResult, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public DateTime? FinishTime { get; set; }
        public string CommandName { get; set; }
        public string CommandType { get; set; }
        public string ResultAbstract { get; set; }
        public string ResultContent { get; set; }
    
        public void Configure(EntityTypeBuilder<AutoCommandResult> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.CommandName).HasMaxLength(100);

                entityBuilder.Property(e => e.CommandType).HasMaxLength(100);

                entityBuilder.Property(e => e.FinishTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.ResultAbstract).HasMaxLength(1000);

                entityBuilder.Property(e => e.ResultContent).HasMaxLength(4000);
        }

    }
}

